/**
 * JAVACC DEMO 1.0
 */
package com.apache.info.service.plugins;

import com.apache.api.vo.ParamsVo;
import com.apache.info.manager.InfoReleaseManager;

/**
 * description:  动态获取信息数
 *
 * @author Hou Dayu 创建时间：2016-8-29
 */
public class CountDynamicInfoPluginImpl extends AbstractInfoReleasePlugin {

    private InfoReleaseManager InfoReleaseManager;

    /**
     * TODO 动态获取信息数插件实现
     *
     * @see com.apache.info.service.plugins.AbstractInfoReleasePlugin#doInvoke(ParamsVo)
     */
    protected Object doInvoke(ParamsVo vo) {
        long count = InfoReleaseManager.countInfo(vo);
        return count;
    }

    public void setInfoReleaseManager(InfoReleaseManager infoReleaseManager) {
        InfoReleaseManager = infoReleaseManager;
    }

}
